package com.ysp;

/**
 * @author ysp
 * @date 2021/1/21 11:08
 */
public class ModernFactory extends AbstractFactory{
    @Override
    Food creatFood() {
        return new Bread();
    }

    @Override
    Drink creatDrink() {
        return new Soda();
    }
}
